package library.base;

import java.io.Serializable;

/**
 * @author 小杜 QQ:1392229149
 * @name phone
 * @class name：com.xiaodu.acer.phoneplay.bean
 * @class describe
 * @time 2017/12/16 21:31
 * @change
 * @chang time
 * @class describe
 */
public class BaseBean<T> implements Serializable {
    //默认的返回数据成功为1，根据后台参数改
    public static final int SUCCESS = 1;
    private int status; //状态

    private String message;//消息

    private T data; //真正的数据


    public boolean success() {

        return (status == SUCCESS);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
